<template>
  <div class="yghh-msg-shade">
    <div class="yghh-msg">{{tips}}</div>
  </div>
</template>

<script>
  export default {
    name: 'yghh-msg',
    props: {
      tips: {
        type: String,
        default: '提示信息'
      }
    }
  }
</script>

<style scoped="scoped">
  .yghh-msg-shade {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0;
    pointer-events: none;
  }

  .yghh-msg {
    padding: .15rem .4rem;
    color: white;
    background: rgba(0, 0, 0, .6);
    border-radius: 5px;
    z-index: 9;
  }
</style>
